package com.equity.authentication.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.equity.authentication.dao.LoginDao;
import com.equity.authentication.service.ISLogin;

@Service
public class LoginService implements ISLogin {

	@Autowired
	private LoginDao loginDao;

	@Override
	public Boolean tx_doLogin(String user, String pass) throws Exception {
		Boolean aux = Boolean.FALSE;
		if (loginDao.userAndPasswordExists(user, pass)) {
			aux = Boolean.TRUE;
		}
		return aux;
	}

}
